<template>
<div>
   <input type="text" v-model="item.name">
   <input type="checkbox" v-model="item.required"> 必填
</div>
</template>
<style scoped>
</style>
<script>
export default {
  data: function(){
    return {
    }
  },
  props: {
    item: {
      type: Object,
      twoWay: true,
      required: true
    },
    comp: {
      type: Object,
      twoWay: true,
      required: true
    }    
  },
  computed: { 
  },
  methods: {
    delItem: function(){
      this.comp.list.$remove(this.item);
    }
  },
  components: {
  }
}
</script>